<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */

/* @var $model backend\models\LoginForm */

use yii\helpers\Html;
use yii\widgets\ActiveForm;

$this->title = '后台登录';
$this->params[ 'breadcrumbs' ][] = $this->title;
?>

<div class = "middle-box text-center loginscreen animated fadeInDown" style = "padding-top: 10%">
	<div>
		<h3 style = "font-size: 28px;color: #676a6c">欢迎使用</h3>

        <?php $form = ActiveForm::begin( [
            'id'      => 'login-form' ,
            'options' => [ 'class' => 'm-t' , 'role' => 'form' ] ,
        ] ); ?>

		<div class = "form-group">
            <?= $form->field( $model , 'user_name' )->textInput( [
                'placeholder' => '用户名' ,
                'class'       => 'form-control' ,
                'required'    => 'required' ,
            ] )->label( FALSE ) ?>
		</div>

		<div class = "form-group">
            <?= $form->field( $model , 'password' )->passwordInput( [
                'placeholder' => '密码' ,
                'class'       => 'form-control' ,
                'required'    => 'required' ,
            ] )->label( FALSE ) ?>
		</div>

        <?= Html::submitButton( '登 录' , [
            'class' => 'btn btn-primary block full-width m-b' ,
            'name'  => 'login-button' ,
        ] ) ?>
        <?php ActiveForm::end(); ?>
	</div>
	<div>Copyright : <?= trim( Yii::$app->request->hostInfo , 'http://' ) ?> &copy; 2018</div>
</div>
